package com.hyl.domain.order.adapter.repository;

import com.hyl.domain.order.model.aggregate.CreateOrderAggregate;
import com.hyl.domain.order.model.entity.OrderEntity;
import com.hyl.domain.order.model.entity.PayOrderEntity;
import com.hyl.domain.order.model.entity.ShopCartEntity;

import java.util.List;

/**
 * @author hyl
 * @description
 * @create 2025-06-12 18:07
 */
public interface IOrderRepository {
    void doSaveOrder(CreateOrderAggregate orderAggregate);
    OrderEntity queryUnpayorder(ShopCartEntity shopCartEntity);

    void updateOrderPayInfo(PayOrderEntity payOrder);

    void changeOrderPaySuccess(String orderId);

    List<String> queryNoPayNotifyOrder();

    List<String> queryTimeoutCloseOrderList();

    boolean changeOrderClose(String orderId);
}
